package com.training.comissionbased;

public class PercentComissionEmployee extends ComissionEmployee{

	private int percentageRate;

	public PercentComissionEmployee() {
	 
		percentageRate = 10;
		
	}
	
	
	/**
	 * @return the percentageRate
	 */
	public int getPercentageRate() {
		 
		return percentageRate;
	}

	/**
	 * @param percentageRate the percentageRate to set
	 */
	public void setPercentageRate(int percentageRate) {
		this.percentageRate = percentageRate;
	}
	
	public void performReview()
	{
	 
		if(percentageRate >= 10)
		{
			super.setSalaryHike("1000");
		}else
		{
			super.setSalaryHike("800");
			
		}
 		
	}
	
	
	
}
